import 'package:fl_demo/src/banner_list_view/banner_list_view.dart';
import 'package:flutter/material.dart';
import 'package:universally/universally.dart';

class BannerPage extends StatelessWidget {
  const BannerPage({super.key});

  @override
  Widget build(BuildContext context) {
    return BaseScaffold(
      appBarTitleText: 'BannerPage',
      spacing: 20,
      children: [
        SizedBox(),
        BannerListView(
          itemCount: 10,
          padding: EdgeInsets.symmetric(horizontal: 12),
          itemBuilder:
              (_, index) => ClipRRect(
                borderRadius: BorderRadius.circular(10),
                child: Container(margin: EdgeInsets.symmetric(horizontal: 4), color: Colors.blue),
              ),
          itemHeight: 180,
          itemWidth: 140,
          itemSpacing: 8,
        ),
        ClipRRect(
          borderRadius: BorderRadius.circular(10),
          child: Container(width: double.infinity, margin: EdgeInsets.symmetric(horizontal: 16), height: 40, color: Colors.red),
        ),
      ],
    );
  }
}
